<template>
  <div>测试小李</div>
</template>
<script setup lang="ts">
import type { TestComponent } from "./class";
type Props = {
  instance: TestComponent;
};

const props = defineProps<Props>();
console.log(props, "PropsProps");
const getData = () => {
  return { name: "888", age: 18 };
};
const setData = () => {
  console.log("text.vue -- setData");
};
props.instance.getData = getData;
props.instance.setData = setData;

defineExpose({ getData, setData });
</script>
<style lang="scss" scoped></style>
